package com.cskaoyan.bean.goods.wx;

import lombok.Data;

import java.util.List;

/**
 * ClassName: WxGoodsRelatedData
 * Description:
 * date: 2022/6/9 14:27
 *
 * @author bruce
 * @since JDK 8
 */
@Data
public class WxGoodsRelatedData {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<ListBean> list;

    public static WxGoodsRelatedData data(long total, Integer pages, Integer limit, Integer page, List<ListBean> list) {
        WxGoodsRelatedData wxGoodsRelatedData = new WxGoodsRelatedData();
        wxGoodsRelatedData.setTotal((int)total);
        wxGoodsRelatedData.setPages(pages);
        wxGoodsRelatedData.setPage(page);
        wxGoodsRelatedData.setLimit(limit);
        wxGoodsRelatedData.setList(list);
        return wxGoodsRelatedData;
    }
}
